package me.jessyan.mvparms.demo.mvp.ui.xunfeisdk.core;


import android.support.annotation.Keep;

import com.iflytek.cloud.RecognizerResult;
import com.iflytek.cloud.ui.RecognizerDialogListener;

/**
 * 语音识别窗口的识别结果监听
 *
 * @Author 35574
 * @Date 2020/7/8
 * @Description
 */
@Keep
public interface SpeechDialogListener extends RecognizerDialogListener {

    /**
     * 识别结果
     * @param result
     */
    void onResult(String result);

    /**
     * 识别错误
     * @param speechError
     */
    void onError(SpeechError speechError);

    @Override
    void onResult(RecognizerResult recognizerResult, boolean b);

    @Override
    void onError(com.iflytek.cloud.SpeechError speechError);
}
